package entities.login;

import java.util.List;

import entities.common.BaseEntities;
import entities.organization.Dept;
import entities.permission.Role;

public class User extends BaseEntities {
	    private static final long serialVersionUID = 2039861692418167602L;
		private String id;//主键
        private String name;//用户名
        private String password;//密码
        private String deptId;//所属部门ID
	    private List<Role> roles;//用户所属角色
		public String getId() {
			return id;
		}
		public void setId(String id) {
			this.id = id;
		}
		public void setName(String name){
        	this.name=name;
        }
        public String getName(){
        	return name;
        }
		public String getPassword() {
			return password;
		}
		public void setPassword(String password) {
			this.password = password;
		}
		
		public String getDeptId() {
			return deptId;
		}
		public void setDeptId(String deptId) {
			this.deptId = deptId;
		}
		public List<Role> getRoles() {
			return roles;
		}
		public void setRoles(List<Role> roles) {
			this.roles = roles;
		}
		
}
